home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / man / cat3 / XmSetWMProtocolHooks.z / XmSetWMProtocolHooks
Encoding:
Text File  |  2003-11-18  |  3.5 KB  |  67 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmSSSSeeeettttWWWWMMMMPPPPrrrroooottttooooccccoooollllHHHHooooooookkkkssss((((3333XXXX))))  UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV  XXXXmmmmSSSSeeeettttWWWWMMMMPPPPrrrroooottttooooccccoooollllHHHHooooooookkkkssss((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       _X_m_S_e_t_W_M_P_r_o_t_o_c_o_l_H_o_o_k_s - A VendorShell convenience interface
  10.       that allows pre and post actions to be executed when a
  11.       protocol message is received from the    window manager
  12.  
  13.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.       #include <Xm/Xm.h>
  15.       #include <Xm/Protocols.h>
  16.  
  17.       void XmSetWMProtocolHooks (sssshhhheeeellllllll,,,, pppprrrroooottttooooccccoooollll,,,, pppprrrreeeehhhhooooooookkkk,,,, pppprrrreeee____cccclllloooossssuuuurrrreeee,,,, ppppoooosssstttthhhhooooooookkkk,,,, ppppoooosssstttt____cccclllloooossssuuuurrrreeee)
  18.            _W_i_d_g_e_t       sssshhhheeeellllllll;
  19.            _A_t_o_m       pppprrrroooottttooooccccoooollll;
  20.            _X_t_C_a_l_l_b_a_c_k_P_r_o_cpppprrrreeeehhhhooooooookkkk;
  21.            _X_t_P_o_i_n_t_e_r   pppprrrreeee____cccclllloooossssuuuurrrreeee;
  22.            _X_t_C_a_l_l_b_a_c_k_P_r_o_cppppoooosssstttthhhhooooooookkkk;
  23.            _X_t_P_o_i_n_t_e_r   ppppoooosssstttt____cccclllloooossssuuuurrrreeee;
  24.  
  25.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  26.       _X_m_S_e_t_W_M_P_r_o_t_o_c_o_l_H_o_o_k_s is a convenience    interface.  It calls
  27.       _X_m_S_e_t_P_r_o_t_o_c_o_l_H_o_o_k_s with the property value set to the    atom
  28.       returned by interning    _W_M__P_R_O_T_O_C_O_L_S.
  29.  
  30.       sssshhhheeeellllllll
  31.            Specifies the widget with which the protocol property
  32.            is associated
  33.  
  34.       pppprrrroooottttooooccccoooollll
  35.            Specifies the protocol atom (or an int cast to Atom)
  36.  
  37.       pppprrrreeeehhhhooooooookkkk
  38.            Specifies the procedure to call before calling entries
  39.            on the client callback-list
  40.  
  41.       pppprrrreeee____cccclllloooossssuuuurrrreeee
  42.            Specifies the client data to be passed to the prehook
  43.            when it is invoked
  44.  
  45.       ppppoooosssstttthhhhooooooookkkk
  46.            Specifies the procedure to call after calling entries
  47.            on the client callback-list
  48.  
  49.       ppppoooosssstttt____cccclllloooossssuuuurrrreeee
  50.            Specifies the client data to be passed to the posthook
  51.            when it is invoked
  52.  
  53.       For a    complete definition of VendorShell and its associated
  54.       resources, see _V_e_n_d_o_r_S_h_e_l_l(_3_X).
  55.  
  56.      RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
  57.       _V_e_n_d_o_r_S_h_e_l_l(_3_X), _X_m_I_n_t_e_r_n_A_t_o_m(_3_X), and
  58.       _X_m_S_e_t_P_r_o_t_o_c_o_l_H_o_o_k_s(_3_X).
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 11/11/03)
  64.  
  65.  
  66.  
  67.